package com.es.designmode.decorator;

/**
 * @author Will
 */
public class ConcreteDecoratorB extends Decorator {

    @Override
    public void operation() {
        super.operation();
        addedBehavior();
        System.out.println("具体装饰对象B的操作");
    }

    /**
     * 本类独有方法，区别于A
     */
    private void addedBehavior() {
        System.out.println("区别方法：AddedBehavior");
    }
}
